{% load i18n %}

{% extends "main.html" %}
    
{% block content %}
  <img src="/static/{{ project.logo }}" width="200" height="65">
  <div id="member_text">
	<strong>Nazwa projektu: {{ project.name }}</strong><br />
	<strong>Opiekun projektu:</strong> <a href="/members/profile/{{ project.owner.id }}">{{ project.owner }}</a><br />
	<strong>Data rozpoczęcia: </strong> {{ project.start_date|date:"F Y" }}<br />
	<strong>Stan projektu:</strong> {{ project.status }}<br />
	{% if project.webpage %}
	    <strong>Strona domowa projektu:</strong> <a href="{{ project.webpage }}">{{ project.webpage }}</a><br />
	{% endif %}
	{% if project.docspage %}
	    <strong>Dokumentacja projektu:</strong> <a href="{{ project.docspage }}">{{ project.docspage }}</a><br />
	{% endif %}
	<strong>Opis projektu:</strong> {{ project.about }}<br />
  </div>
  <div id="row1">
    {% if users %}
        <h3>Członkowie projektu</h3>
        {% for i in users %}
            <div id="blocks">
	           <div id="avatar"> 
		             <img src="/static/{{ i.member.avatar }}" width="100" height="100">
	           </div>
	           <div id="member_text_below">
		          <a href="/members/profile/{{ i.member.id }}">{{ i.member.nickname }}</a><br />
		          {{ i.responsibilities }}		
	           </div>
	       </div>
	    {% endfor %}
    {% endif %}
  </div>
  <div id="row1">
    {% if issues %}
        <h3>Issues</h3>
        {% for obj in issues %}
            <b>Nazwa:</b> {{ obj.name }}<br />
            Typ: {{ obj.type }}<br />
            Treść: {{ obj.text }}<br />
            {% if obj.starred %}gwiazdka<br />{% endif %}
        {% endfor %}
    {% endif %}
  </div>
  <div id="row1">
    {% if jobs %}
        <h3>Oferty pracy</h3>
        {% for obj in jobs %}
            <b>Nazwa:</b> {{ obj.name }}<br />
            Treść: {{ obj.text }}<br />
        {% endfor %}
    {% endif %}
  </div>
  
{% endblock %}

{% block sidebar %}
{% endblock %}

{% block subtitle %}
    Projekty realizowane przez ASI
{% endblock %}


